﻿@model Project_2._2.ViewModels.LoaiXe_ViewModels

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_AdminLayoutPage.cshtml";
}

<link href="~/Content/Admin-content-right.css" rel="stylesheet" />
<div class="grid_12">
    <div class="block-border">
        <div class="block-header">
            Thêm Mới Loại Xe
            @Html.ActionLink("Trở về Danh Sách", "Default", "LoaiXe", null, new { @class = "button" })
        </div>
        <div class="block-content">


            @using (Html.BeginForm("Create", "LoaiXe", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
                @Html.ValidationSummary(true)
                @Html.AntiForgeryToken()

                <table style="padding: 20px 0 0 50px; line-height: 35px; color: #808080; font-weight: bold">
                    <tr>
                        <td>@Html.LabelFor(m => m.TenLoaiXe)<span style="color:red"> *</span></td>
                        <td>
                            @Html.TextBoxFor(m => m.TenLoaiXe, new { @class = "Textbox", style = @"width: 232px" })
                            @Html.ValidationMessageFor(m => m.TenLoaiXe)
                        </td>
                    </tr>

                    <tr>
                        <td>@Html.LabelFor(m => m.MoTa)<span style="color:red"> *</span></td>
                        <td>
                            @Html.TextAreaFor(m => m.MoTa, new { @class = "Textarea", style = @"width: 232px; height: 100px; boder-radius: 4px;" })
                            @Html.ValidationMessageFor(m => m.MoTa)
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" class="Button" value="Thêm" />
                            <a href="LoaiXe/LoaiXe">  <input type="button" class="Button" value="Trở Về" /></a>
                        </td>
                    </tr>
                </table><br />
            }

        </div>
    </div>
</div>
